package com.hz.cheetah.sample.server;


import com.hz.cheetah.sample.api.HelloService;
import com.hz.cheetah.sample.api.Person;
import com.hz.cheetah.server.CheetahService;
import org.springframework.stereotype.Service;

@CheetahService(HelloService.class)
public class HelloServiceImpl implements HelloService {

    @Override
    public String hello(String name) {
        return "Hello! " + name;
    }

    @Override
    public String hello(Person person) {
        return "Hello! " + person.getFirstName() + " " + person.getLastName();
    }
}
